package org.qiyu.live.provider.sku.controller;

import jakarta.annotation.Resource;
import org.qiyu.live.provider.sku.entity.SkuInfo;
import org.qiyu.live.provider.sku.service.ISkuInfoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 商品sku信息表 前端控制器
 * </p>
 *
 * @author zx
 * @since 2024-08-14
 */
@RestController
@RequestMapping("/skuInfo")
public class SkuInfoController {
    @Resource
    private ISkuInfoService skuInfoService;

    @GetMapping("/list")
    public List<SkuInfo> list() {
        return skuInfoService.testSelectOne();
    }
}
